<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>javascript 阶段</title>
    <style>
        .container {
            width: 600px;
            height: 500px;
            background-color: cornsilk;
            margin: 0 auto;
        }

        .red {
            background-color: red;
            width: 100px;
            height: 100px;
            margin-bottom: 5px;
            border-radius: 20px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="red"></div>
        <div class="red"></div>
        <div class="red"></div>
        <div class="red"></div>
    </div>

    <script>
     function Teen () {
         this.width = 0;
         this.heligh = 0;
         this.background = "";
         this.borderRadius = 0; 
     }

     Teen.prototype.createEI = function (tagName , option) {
         tagName = document.createElement("div");
         document.container.appendChind(tagName);
         option = {};
         option.width = 100; 
     }

     var w1 = new Teen();
     w1.createEI();
    </script>
</body>
</html>